﻿// Write a program that reads from the console a string of maximum 20 characters. 
// If the length of the string is less than 20, the rest of the characters should be filled with '*'. 
// Print the result string into the console.

using System;

public class PadRightAsterisk
{
    public static void Main()
    {
        string text;
        do
        {
            Console.Write("Enter text: ");
            text = Console.ReadLine();
        }
        while (text.Length > 20);

        Console.WriteLine();
        Console.WriteLine("Paded right with asterisk string: {0}", text.PadRight(20, '*'));
    }
}